<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let i = 1
    let time = null
    document.addEventListener('mousemove', () => {
      if (time) return
      time = setTimeout(() => {
        console.log(`我好帅${i}`)
        i++
        time = null
      }, 1000)
    })
  </script>
</body>

</html>